package com.junrry.communication

import android.content.Intent
import android.os.Bundle
import androidx.activity.ComponentActivity
import com.junrry.communication.databinding.ActivityMainBinding

class MainActivity : ComponentActivity() {

    private lateinit var binding: ActivityMainBinding

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        binding = ActivityMainBinding.inflate(layoutInflater)
        setContentView(binding.root)

        initListener()
    }

    private fun initListener() {
        binding.btnPc.setOnClickListener {
            val intent = Intent(this, PcActivity::class.java)
            startActivity(intent)
        }
        binding.btnGps.setOnClickListener {
            val intent = Intent(this, GPSActivity::class.java)
            startActivity(intent)
        }
        binding.btnBle.setOnClickListener {
            val intent = Intent(this, BleActivity::class.java)
            startActivity(intent)
        }
        binding.btnMqtt.setOnClickListener {
            val intent = Intent(this, MQTTActivity::class.java)
            startActivity(intent)
        }
    }
}
